<template>
  <div>
    <div class="page-section">
      <div class="page-section_left">
        <div class="section-info">
          <div class="img-wrapper">
            <img src="@/assets/images/love.png" alt="">
          </div>
          <div class="info-text">
            <div class="info-title">婚姻登记信息查询</div>
            <i class="info-place">{{info.servicePrincipal}}</i>
          </div>
        </div>
        <div class="section-operation">
          <button>订阅</button>
          <button>评价</button>
        </div>
      </div>
      <div class="page-section_right">
        <div class="info-data">
          <div class="rate-text">综合评分</div>
          <div class="rate-value">{{info.overallScore}}</div>
          <div>
            <van-rate
              v-model="info.overallScore"
              color="#F2962C"
              void-icon="star-o"
              void-color="#F2962C"
              size="10"
              readonly
            />
          </div>
          <div class="usersCount">{{info.usersCount}}人在使用</div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
import { Rate } from 'vant';

export default {
  name: 'PageSection',
  props: {
    info: Object
  },
  data () {
    return {
      
    }
  },
  mounted () {
    
  },
  methods: {
    
  },
}
</script>

<style lang="less" scoped>
  @import '~styles/varibles.less';
  .page-section {
    display: flex;
    justify-content: space-between;
    height: 155px;
    padding-top: 25px;
    padding-left: @pagePadding;
    padding-right: @pagePadding;
    box-sizing: border-box;
    background: #127AED;
    &_left {
      padding-top: 5px;
    }
    .section-info {
      display: flex;
      .img-wrapper {
        width: 48px;
        height: 48px;
        background-color: #fff;
        img {
          width: 96%;
          margin: auto 2%;
          max-height: 100%;
        }
      }
      .info-text {
        margin-left: 10px;
        color: #fff;
        .info-title {
          margin-top: 2px;
          margin-bottom: 8px;
          font-size: 14px;
        }
        .info-place {
          font-size: 12px;
        }
      }
    }
    .section-operation {
      margin-top: 15px;
      button {
        padding: 3px 12px;
        background-color: inherit;
        border: 1px solid #fff;
        border-radius: 3px;
        color: #fff;
        &:nth-child(1) {
          margin-right: 10px;
        }
      }
    }
    .info-data {
      padding: 10px 6px;
      border: 2px solid #F2962C;
      color:#fff;
      & > div {
        margin-bottom: 5px;
        text-align: center;
      }
      .rate-text {
        font-size: 13px;
      }
      .rate-value {
        font-size: 18px;
      }
      .usersCount {
        font-size: 14px;
      }
    }
  }
</style>
